#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20240629.sql ./mysql/db
cp ../sql/ry_config_20240902.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../joker-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy joker-gateway "
cp ../joker-gateway/target/joker-gateway.jar ./joker/gateway/jar

echo "begin copy joker-auth "
cp ../joker-auth/target/joker-auth.jar ./joker/auth/jar

echo "begin copy joker-visual "
cp ../joker-visual/joker-monitor/target/joker-visual-monitor.jar  ./joker/visual/monitor/jar

echo "begin copy joker-modules-system "
cp ../joker-modules/joker-system/target/joker-modules-system.jar ./joker/modules/system/jar

echo "begin copy joker-modules-file "
cp ../joker-modules/joker-file/target/joker-modules-file.jar ./joker/modules/file/jar

echo "begin copy joker-modules-job "
cp ../joker-modules/joker-job/target/joker-modules-job.jar ./joker/modules/job/jar

echo "begin copy joker-modules-gen "
cp ../joker-modules/joker-gen/target/joker-modules-gen.jar ./joker/modules/gen/jar

